import Layout from '@/layout'

const baseRouter = {
  path: '/base',
  component: Layout,
  redirect: '/base/unit',
  name: 'Base',
  meta: {
    title: '基础资料',
  },
  children: [
    {
      path: 'unit',
      name: 'Unit',
      meta: { title: '计量单位' },
      component: () => import('@/views/base/unit/'),
    },
    {
      path: 'category',
      name: 'Category',
      meta: { title: '商品分类' },
      component: () => import('@/views/base/category/'),
    },
    {
      path: 'house',
      name: 'House',
      meta: { title: '仓库管理' },
      component: () => import('@/views/base/house/'),
    },
    {
      path: 'company',
      name: 'Company',
      meta: { title: '公司信息' },
      component: () => import('@/views/base/company/'),
    },
    // {
    //   path: 'customer',
    //   name: 'Customer',
    //   meta: { title: '客户资料' },
    //   component: () => import('@/views/base/customer/'), 
    // },
    // {
    //   path: 'supplier',
    //   component: () => import('@/views/base/supplier/'), 
    //   name: 'Supplier',
    //   meta: { title: '供应商资料' }
    // },
    {
      path: 'goods',
      component: () => import('@/views/base/goods/'),
      name: 'Goods',
      meta: { title: '商品管理' }
    },
    {
      path: 'account_title',
      component: () => import('@/views/base/title/index'),
      name: 'AccountTitle',
      meta: { title: '会计科目' }
    },
    {
      path: 'employee',
      component: () => import('@/views/base/employee/index'),
      name: 'Empolyee',
      meta: { title: '员工信息' },
    },
  ]
}

export default baseRouter